package com.swg.config;

import com.swg.FilterType.MyTypeFilter;
import com.swg.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @Author 【swg】.
 * @Date 2018/5/27 20:55
 * @DESC
 * @CONTACT 317758022@qq.com
 */
@Configuration
//@ComponentScan(value = "com.swg",excludeFilters = {
//        @ComponentScan.Filter(type = FilterType.ANNOTATION,classes = Controller.class)
//})
//@ComponentScan(value = "com.swg", includeFilters = {
//        @ComponentScan.Filter(type = FilterType.CUSTOM,classes = {MyTypeFilter.class})
//},useDefaultFilters = false)
public class MainConfig {
    @Bean
    public Person person(){
        //return new Person("李四",20);
        return new Person();
    }
}
